package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author oxiny
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("d_product_group")
public class ProductGroup extends Model<ProductGroup> {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private Integer price;

    private String storeList;

    private Integer workerShow;

    private Integer member;

    @TableField(exist = false)
    private List<ProductGroupDetail> productGroupDetailList;

    @TableField(exist = false)
    private List<ProductGroupImg> productGroupImgList;
}
